﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WaterfrontLodge.Models;

namespace WaterfrontLodge.WebForms.Report
{
    public partial class ReportList : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            GridView1.DataSource = getAllReports();
            GridView1.DataBind();
        }

        public IEnumerable<ReportEntry> getAllReports()
        {
            List<ReportEntry> list = new List<ReportEntry>();
            list.Add(new ReportEntry("1001", "Top 5 Most Loyal Customers", "~/WebForms/Report/RPT1001.aspx"));
            list.Add(new ReportEntry("1002", "Occupation Rate", "~/WebForms/Report/RPT1002.aspx"));
            list.Add(new ReportEntry("2001", "Room Type Popularity", "~/WebForms/Report/RPT2001.aspx"));

            return list;
        }
    }
}